package com.sk.bilibili.view.diy.bottomDialog;

import android.view.View;

import com.sk.bilibili.R;
import com.sk.bilibili.model.diy.bottomDialog.SpaceModel;
import com.sk.bilibili.utils.ClipboardUtils;

public class SpaceBottomDialog extends BaseHorizontalBottomDialog<SpaceModel>{

    private Integer memberId;

    public SpaceBottomDialog(Integer memberId) {
        this.memberId = memberId;
    }

    @Override
    protected void afterSetView() {
        title1.setVisibility(View.GONE);
        title2.setVisibility(View.GONE);
        show2.setVisibility(View.GONE);
    }

    @Override
    protected void initImageAndName() {
        images1=new int[]{R.drawable.share_qq,R.drawable.share_qq_space,R.drawable.share_wx,R.drawable.share_wx_space,R.drawable.share_wb,R.drawable.copy_link,R.drawable.more_share};
        names1="QQ,QQ空间,微信,朋友圈,微博,复制链接,更多".split(",");
    }

    @Override
    public void onType1Click(int pos) {
        if(pos==5){
            model.copyUrl(memberId);
            toast("已复制到剪切板");
        }else if(pos==6){
            model.moreShare(memberId);
        }else {
            toast("暂不支持");
        }
        dismiss();
    }

    @Override
    public void onType2Click(int pos) {}

}